-- GENERATED SPELL FOR [Vampiric Shadowbat] --


function spell0_16175(pUnit, Event) --@Draining Touch,n/a--
pUnit:FullCastSpellOnTarget(32429,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16175', 586, 1)
end

function Sorts_16175(pUnit, Event)
local choix_sorts_16175 = math.random(0, 0)
if choix_sorts_16175 == 0 then
pUnit:RegisterEvent('spell0_16175', 1, 1)
end
end

function mob16175_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16175', math.random(1500, 3000), 1)
end

function mob16175_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16175_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16175_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16175, 1, 'mob16175_Action')
RegisterUnitEvent(16175, 2, 'mob16175_Leave')
RegisterUnitEvent(16175, 3, 'mob16175_Kill')
RegisterUnitEvent(16175, 4, 'mob16175_Die')
